﻿using System;
using System.Collections.Generic;
using System.Text;
using WindowsLive.Writer.Api;

namespace WLWCreateCalendarItemPlugin
{
    public class Settings
    {
        IProperties Properties;

        public Settings(IProperties properties)
        {
            Properties = properties;
        }

        public bool ReplaceExistingAppointment
        {
            get { return Properties.GetBoolean("ReplaceExistingAppointment", false); }
            set { Properties.SetBoolean("ReplaceExistingAppointment", value); }
        }

        public string CalendarFolderName
        {
            get { return Properties.GetString("CalendarFolderName", string.Empty); }
            set { Properties.SetString("CalendarFolderName", value); }
        }

        public string CalendarDisplayName
        {
            get { return Properties.GetString("CalendarDisplayName", string.Empty); }
            set { Properties.SetString("CalendarDisplayName", value); }
        }
    }

}
